//student页面请求
import request from '../utils/request'

// 获取列表数据请求
export function getStudentApi(params){
  return request({
          url:'/student',
          method:'get',
          params
        })
}

// 单个删除请求
export function delStudentApi(data){
  return request({
    url:'/delByid',
    method:'post',
    data
  })
}

// 批量删除请求
export function batchDeleteApi(data){
  return request({
    url:'/batchdelete',
    method:'post',
    data
  })
}

//添加请求的发送
export function addStudentApi(data){
  return request({
    url:'/addstudent',
    method:'post',
    data
  })
}

//编辑请求的发送
export function editStudentApi(data){
  return request({
    url:'/editstudent',
    method:'post',
    data
  })
}